import 'package:bazi/util/my_color.dart';
import 'package:flutter/material.dart';

class TitleWidget extends StatelessWidget {
  String title= '';
  TitleWidget(String title){
    this.title = title;
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 50,
      padding: EdgeInsets.only(left: 10),
      margin: EdgeInsets.only(bottom: 10,top: 10),
      alignment: Alignment.centerLeft,
      width: double.infinity,
      color: MyColor.lightBg,
      child: Row(
        children: [
          Image.asset("assets/tongqian.png",width: 20,height: 20,),
          SizedBox(width: 10,),
          Text(this.title,style: TextStyle(fontSize: 16,fontWeight: FontWeight.w800,color: MyColor.textOrange),),
        ],
      ),
    );
  }
}
